package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 a_t_commerce_orders
 * 
 * @author ruoyi
 * @date 2024-12-11
 */
public class ATCommerceOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    @Excel(name = "订单id")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userid;

    /** 商品id */
    @Excel(name = "商品id")
    private Long goodsid;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long nums;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creat;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Long del;

    private AGoods aGoods;

    private Date startTime;
    private Date endTime;

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String name;
    private Double money;

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public AGoods getaGoods() {
        return aGoods;
    }

    public void setaGoods(AGoods aGoods) {
        this.aGoods = aGoods;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setGoodsid(Long goodsid) 
    {
        this.goodsid = goodsid;
    }

    public Long getGoodsid() 
    {
        return goodsid;
    }
    public void setNums(Long nums) 
    {
        this.nums = nums;
    }

    public Long getNums() 
    {
        return nums;
    }
    public void setCreat(Date creat) 
    {
        this.creat = creat;
    }

    public Date getCreat() 
    {
        return creat;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("goodsid", getGoodsid())
            .append("nums", getNums())
            .append("creat", getCreat())
            .append("status", getStatus())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
            .append("del", getDel())
            .toString();
    }
}
